#pragma once

#include "Pages/EditorPageModel.h"
#include "EditorTexturePageModel.m.h"

class RTexture2D;

RCLASS(ExtraHeader= "Texture/Texture2D.h")
class REditorTexturePageModel : public REditorPageModel
{
    ROBJECT

public:
    virtual TSharedObjectPtr<REditorPageModel> ShareClone(RObject* InOwner) const override;
    virtual SPath GetFilePath() const override
    {
        return FilePath;
    }

    static TSharedObjectPtr<REditorTexturePageModel> Create(const SPath& InFilePath,TSharedObjectPtr<RTexture2D> InTexture);

    RFIELD()
    TSharedObjectPtr<RTexture2D> Texture;

    RFIELD()
    SPath FilePath;

};